package org.andromda.cartridges.gwt.metafacades;

import org.apache.commons.lang.StringUtils;

public class GwtMetafacadeUtils {

	static String getFullyQualifiedName(String packageName, String name, String suffix) {
		StringBuffer fullyQualifiedName = new StringBuffer( StringUtils.trimToEmpty( packageName ) );
		if ( StringUtils.isNotBlank( packageName ) ) {
			fullyQualifiedName.append( "." );
		}
		fullyQualifiedName.append( StringUtils.trimToEmpty( name ) );
		if ( StringUtils.isNotEmpty( suffix ) ) {
			fullyQualifiedName.append( StringUtils.trimToEmpty( suffix ) );
		}
		return fullyQualifiedName.toString();
	}
}
